package com.xjzp.business.db.hibernate.po.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the tb_test_heading table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="tb_test_heading"
 */

public abstract class BaseTbTestHeading  implements Serializable {

	public static String REF = "TbTestHeading";
	public static String PROP_FREQUENCY = "Frequency";
	public static String PROP_HEADING_NAME4 = "HeadingName4";
	public static String PROP_SUBJECT_ID = "SubjectId";
	public static String PROP_END_DATE = "EndDate";
	public static String PROP_START_DATE = "StartDate";
	public static String PROP_HEADING_NAME1 = "HeadingName1";
	public static String PROP_YEAR = "Year";
	public static String PROP_HEADING_NAME2 = "HeadingName2";
	public static String PROP_SEQUENCE = "Sequence";
	public static String PROP_HEADING_NAME5 = "HeadingName5";
	public static String PROP_HEADING_NAME3 = "HeadingName3";
	public static String PROP_SUB1 = "Sub1";
	public static String PROP_ID = "Id";


	// constructors
	public BaseTbTestHeading () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTbTestHeading (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.Integer subjectId;
	private java.lang.String year;
	private java.lang.Integer frequency;
	private java.lang.Integer sequence;
	private java.lang.String headingName1;
	private java.lang.String headingName2;
	private java.lang.String headingName3;
	private java.lang.String headingName4;
	private java.lang.String headingName5;
	private java.lang.String startDate;
	private java.lang.String endDate;
	private java.lang.String sub1;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="increment"
     *  column="id"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: subject_id
	 */
	public java.lang.Integer getSubjectId () {
		return subjectId;
	}

	/**
	 * Set the value related to the column: subject_id
	 * @param subjectId the subject_id value
	 */
	public void setSubjectId (java.lang.Integer subjectId) {
		this.subjectId = subjectId;
	}



	/**
	 * Return the value associated with the column: year
	 */
	public java.lang.String getYear () {
		return year;
	}

	/**
	 * Set the value related to the column: year
	 * @param year the year value
	 */
	public void setYear (java.lang.String year) {
		this.year = year;
	}



	/**
	 * Return the value associated with the column: frequency
	 */
	public java.lang.Integer getFrequency () {
		return frequency;
	}

	/**
	 * Set the value related to the column: frequency
	 * @param frequency the frequency value
	 */
	public void setFrequency (java.lang.Integer frequency) {
		this.frequency = frequency;
	}



	/**
	 * Return the value associated with the column: sequence
	 */
	public java.lang.Integer getSequence () {
		return sequence;
	}

	/**
	 * Set the value related to the column: sequence
	 * @param sequence the sequence value
	 */
	public void setSequence (java.lang.Integer sequence) {
		this.sequence = sequence;
	}



	/**
	 * Return the value associated with the column: heading_name_1
	 */
	public java.lang.String getHeadingName1 () {
		return headingName1;
	}

	/**
	 * Set the value related to the column: heading_name_1
	 * @param headingName1 the heading_name_1 value
	 */
	public void setHeadingName1 (java.lang.String headingName1) {
		this.headingName1 = headingName1;
	}



	/**
	 * Return the value associated with the column: heading_name_2
	 */
	public java.lang.String getHeadingName2 () {
		return headingName2;
	}

	/**
	 * Set the value related to the column: heading_name_2
	 * @param headingName2 the heading_name_2 value
	 */
	public void setHeadingName2 (java.lang.String headingName2) {
		this.headingName2 = headingName2;
	}



	/**
	 * Return the value associated with the column: heading_name_3
	 */
	public java.lang.String getHeadingName3 () {
		return headingName3;
	}

	/**
	 * Set the value related to the column: heading_name_3
	 * @param headingName3 the heading_name_3 value
	 */
	public void setHeadingName3 (java.lang.String headingName3) {
		this.headingName3 = headingName3;
	}



	/**
	 * Return the value associated with the column: heading_name_4
	 */
	public java.lang.String getHeadingName4 () {
		return headingName4;
	}

	/**
	 * Set the value related to the column: heading_name_4
	 * @param headingName4 the heading_name_4 value
	 */
	public void setHeadingName4 (java.lang.String headingName4) {
		this.headingName4 = headingName4;
	}



	/**
	 * Return the value associated with the column: heading_name_5
	 */
	public java.lang.String getHeadingName5 () {
		return headingName5;
	}

	/**
	 * Set the value related to the column: heading_name_5
	 * @param headingName5 the heading_name_5 value
	 */
	public void setHeadingName5 (java.lang.String headingName5) {
		this.headingName5 = headingName5;
	}



	/**
	 * Return the value associated with the column: start_date
	 */
	public java.lang.String getStartDate () {
		return startDate;
	}

	/**
	 * Set the value related to the column: start_date
	 * @param startDate the start_date value
	 */
	public void setStartDate (java.lang.String startDate) {
		this.startDate = startDate;
	}



	/**
	 * Return the value associated with the column: end_date
	 */
	public java.lang.String getEndDate () {
		return endDate;
	}

	/**
	 * Set the value related to the column: end_date
	 * @param endDate the end_date value
	 */
	public void setEndDate (java.lang.String endDate) {
		this.endDate = endDate;
	}



	/**
	 * Return the value associated with the column: sub_1
	 */
	public java.lang.String getSub1 () {
		return sub1;
	}

	/**
	 * Set the value related to the column: sub_1
	 * @param sub1 the sub_1 value
	 */
	public void setSub1 (java.lang.String sub1) {
		this.sub1 = sub1;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.xjzp.business.db.hibernate.po.TbTestHeading)) return false;
		else {
			com.xjzp.business.db.hibernate.po.TbTestHeading tbTestHeading = (com.xjzp.business.db.hibernate.po.TbTestHeading) obj;
			if (null == this.getId() || null == tbTestHeading.getId()) return false;
			else return (this.getId().equals(tbTestHeading.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}